import axios from '@/utils/request'

export const getProList = (categoryId, goodsName) => {
  return axios({
    url: '/goods/list',
    method: 'GET',
    params: {
      categoryId,
      goodsName,
      page: 1
    }
  })
}
export const getProDetail = (goodsId) => {
  return axios({
    url: '/goods/detail',
    method: 'GET',
    params: {
      goodsId
    }
  })
}
export const getProComment = (goodsId) => {
  return axios({
    url: '/comment/listRows',
    method: 'GET',
    params: {
      goodsId,
      limit: 3
    }
  })
}
